package com.test.service;

import com.test.entity.system.Role;
import com.test.util.PageData;

import java.util.List;

public interface RoleService {

    public List<Role> listAllERRoles() throws Exception;



    public List<Role> listAllRoles() throws Exception;



    //列出此角色下的所有用户
    public List<PageData> listAllUByRid(PageData pd) throws Exception;

    //列出此角色下的所有会员
    public List<PageData> listAllAppUByRid(PageData pd) throws Exception;

    /**
     * 列出此部门的所有下级
     */
    public List<Role> listAllRolesByPId(PageData pd) throws Exception;




    public void deleteRoleById(String ROLE_ID) throws Exception;

    public Role getRoleById(String roleId) throws Exception;

    public void updateRoleRights(Role role) throws Exception;

    public void updateQx(String msg, PageData pd) throws Exception;

    /**
     * 通过id查找
     */
    public PageData findObjectById(PageData pd) throws Exception;


    /**
     * 编辑角色
     */
    public PageData edit(PageData pd) throws Exception;

    /**
     * 给全部子职位加菜单权限
     */
    public void setAllRights(PageData pd) throws Exception;

    /**
     * 添加
     */
    public void add(PageData pd) throws Exception;
}
